package com.jai.pms.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 任务管理对象 pms_task
 *
 * @author v
 * @date 2023-09-19
 */
public class Task extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 任务编号
     */
    private Long id;

    /**
     * 实体id
     */
    private Long entityId;

    /**
     * 实体编码
     */
    @Excel(name = "实体编码")
    private String entityCode;

    /**
     * 实体名称
     */
    @Excel(name = "实体名称")
    private String entityName;

    /**
     * 父类id
     */
    private Long parentId;

    /**
     * 父类编码
     */
    @Excel(name = "父类编码")
    private String parentCode;

    /**
     * 父类名称
     */
    @Excel(name = "父类名称")
    private String parentName;

    /**
     * $column.columnComment
     */
    private String ancestors;

    /**
     * 项目id
     */
    private Long projectId;

    /**
     * 项目编码
     */
    @Excel(name = "项目编码")
    private String projectCode;

    /**
     * 项目名称
     */
    @Excel(name = "项目名称")
    private String projectName;

    /**
     * 数据id
     */
    private Long dataId;

    /**
     * 数据编码
     */
    @Excel(name = "数据编码")
    private String dataCode;

    /**
     * 数据名称
     */
    @Excel(name = "数据名称")
    private String dataName;

    @Excel(name = "数据分类")
    private String dataCategory;

    /**
     * 工序id
     */
    private Long processId;

    /**
     * 工序编码
     */
    @Excel(name = "工序编码")
    private String processCode;

    /**
     * 工序名称
     */
    @Excel(name = "工序名称")
    private String processName;

    /**
     * 主版本
     */
    @Excel(name = "主版本")
    private String majorVersion;

    /**
     * 子版本
     */
    @Excel(name = "子版本")
    private String subVersion;

    /**
     * 序列号
     */
    @Excel(name = "序列号")
    private Long sn;

    /**
     * 是否当前版本
     */
    @Excel(name = "是否当前版本")
    private Long currentVersion;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /**
     * 任务进度
     */
    @Excel(name = "任务进度")
    private Long progress;

    /**
     * 任务状态
     */
    @Excel(name = "任务状态")
    private Integer taskStatus;

    /**
     * 执行人名
     */
    @Excel(name = "执行人名")
    private String executorName;

    /**
     * 执行人中文名
     */
    @Excel(name = "执行人中文名")
    private String executorNick;

    /**
     * 执行人ID
     */
    @Excel(name = "执行人ID")
    private Long executorId;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setEntityId(Long entityId) {
        this.entityId = entityId;
    }

    public Long getEntityId() {
        return entityId;
    }

    public void setEntityCode(String entityCode) {
        this.entityCode = entityCode;
    }

    public String getEntityCode() {
        return entityCode;
    }

    public void setEntityName(String entityName) {
        this.entityName = entityName;
    }

    public String getEntityName() {
        return entityName;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getParentName() {
        return parentName;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }

    public String getAncestors() {
        return ancestors;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setDataId(Long dataId) {
        this.dataId = dataId;
    }

    public Long getDataId() {
        return dataId;
    }

    public void setDataCode(String dataCode) {
        this.dataCode = dataCode;
    }

    public String getDataCode() {
        return dataCode;
    }

    public void setDataName(String dataName) {
        this.dataName = dataName;
    }
    public String getDataName() {
        return dataName;
    }
    public void setDataCategory(String dataCategory) {
        this.dataCategory = dataCategory;
    }

    public String getDataCategory() {
        return dataCategory;
    }

    public void setProcessId(Long processId) {
        this.processId = processId;
    }

    public Long getProcessId() {
        return processId;
    }

    public void setProcessCode(String processCode) {
        this.processCode = processCode;
    }

    public String getProcessCode() {
        return processCode;
    }

    public void setProcessName(String processName) {
        this.processName = processName;
    }

    public String getProcessName() {
        return processName;
    }

    public void setMajorVersion(String majorVersion) {
        this.majorVersion = majorVersion;
    }

    public String getMajorVersion() {
        return majorVersion;
    }

    public void setSubVersion(String subVersion) {
        this.subVersion = subVersion;
    }

    public String getSubVersion() {
        return subVersion;
    }

    public void setSn(Long sn) {
        this.sn = sn;
    }

    public Long getSn() {
        return sn;
    }

    public void setCurrentVersion(Long currentVersion) {
        this.currentVersion = currentVersion;
    }

    public Long getCurrentVersion() {
        return currentVersion;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setProgress(Long progress) {
        this.progress = progress;
    }

    public Long getProgress() {
        return progress;
    }

    public void setTaskStatus(Integer taskStatus) {
        this.taskStatus = taskStatus;
    }

    public Integer getTaskStatus() {
        return taskStatus;
    }

    public void setExecutorName(String executorName) {
        this.executorName = executorName;
    }

    public String getExecutorName() {
        return executorName;
    }

    public void setExecutorNick(String executorNick) {
        this.executorNick = executorNick;
    }

    public String getExecutorNick() {
        return executorNick;
    }

    public void setExecutorId(Long executorId) {
        this.executorId = executorId;
    }

    public Long getExecutorId() {
        return executorId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("entityId", getEntityId())
                .append("entityCode", getEntityCode())
                .append("entityName", getEntityName())
                .append("parentId", getParentId())
                .append("parentCode", getParentCode())
                .append("parentName", getParentName())
                .append("ancestors", getAncestors())
                .append("projectId", getProjectId())
                .append("projectCode", getProjectCode())
                .append("projectName", getProjectName())
                .append("dataId", getDataId())
                .append("dataCode", getDataCode())
                .append("dataName", getDataName())
                .append("processId", getProcessId())
                .append("processCode", getProcessCode())
                .append("processName", getProcessName())
                .append("majorVersion", getMajorVersion())
                .append("subVersion", getSubVersion())
                .append("sn", getSn())
                .append("currentVersion", getCurrentVersion())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("progress", getProgress())
                .append("taskStatus", getTaskStatus())
                .append("executorName", getExecutorName())
                .append("executorNick", getExecutorNick())
                .append("executorId", getExecutorId())
                .toString();
    }
}
